package GUI;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import Slave.SlaveClient;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author mrbao
 */
public class ChatYahoo extends MIDlet {

    public static SlaveClient slaveClient;
    private static LoginForm loginForm;
    private static ChatForm chatForm;
    private static Display display;

    public ChatYahoo() {
        display = Display.getDisplay(this);
    }

    public static void DisplayLoginForm() {
        if (loginForm == null) {
            loginForm = new LoginForm();
        }
        display.setCurrent(loginForm);
    }

    public static void DisplaySplashForm(String username, String password, boolean invisible) {
        SplashForm splashForm = new SplashForm(username, password, invisible);
        display.setCurrent(splashForm);
    }

    public static void DisplayChatForm() {
        chatForm = new ChatForm();
        display.setCurrent(chatForm);
    }

    public void startApp() {
        DisplayLoginForm();
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
}
